#导包
import redis

#定义ip端口
host = "localhost"
port = 6379

#建立连接
r=redis.Redis(host=host,port=port)
# #赋值
# r.set('test','test')
# #取值
# code=r.get('test')
# code=code.decode("utf-8")
# print(code)

